<%--
  Created by IntelliJ IDEA.
  User: stiofan
  Date: 2017/2/2
  Time: 21:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/tags.jsp"%>

<aos:html title="土地信息查询分析" base="http" lib="ext">
<aos:body>
</aos:body>
</aos:html>
<script type="text/javascript" src="/static/js/gridToExcel.js"></script>
<aos:onready>
	<aos:viewport layout="fit">
		<aos:formpanel layout="column" columnWidth="1" border="false"
			autoScroll="true">
			<aos:docked dock="top" columnWidth="1" layout="column" border="true"
				height="150">
				<aos:dockeditem text="执行查询" margin="0 5" columnWidth="0.1"
					icon="icon71.png" onclick="queryTdxxcxfxByParams" />
				<aos:dockeditem text="重置条件" margin="0 5" columnWidth="0.1"
					icon="icon72.png" onclick="resetCxtjForm" />
				<aos:dockeditem text="结果导出" margin="0 5" columnWidth="0.1"
					icon="icon70.png" onclick="grid2Excel(tdxxcxfxGrid,'查询结果')" />
				<aos:panel columnWidth="1" layout="column">
					<aos:formpanel id="tdxxcxfxForm" layout="column" columnWidth="1">
						<aos:textfield id="nsrsbh" name="nsrsbh" fieldLabel="纳税人识别号"
							columnWidth="0.25" />
						<aos:textfield id="nsrmc" name="nsrmc" fieldLabel="纳税人名称"
							columnWidth="0.25" />
						<aos:textfield id="tdzdh" name="tdzdh" fieldLabel="土地宗地号"
							columnWidth="0.25" />
						<aos:textfield id="tdbh" name="tdbh" fieldLabel="土地编号"
							columnWidth="0.25" />
						<aos:textfield id="ynseq" name="ynseq" fieldLabel="应纳税额起"
							columnWidth="0.25" />
						<aos:textfield id="ynsez" name="ynsez" fieldLabel="应纳税额止"
							columnWidth="0.25" />
						<aos:textfield id="jmseq" name="jmseq" fieldLabel="减免税额起"
							columnWidth="0.25" />
						<aos:textfield id="jmsez" name="jmsez" fieldLabel="减免税额止"
							columnWidth="0.25" />
						<aos:combobox id="tdjmxz_dm" name="tdjmxz_dm" fieldLabel="土地减免性质" value="true"
							columnWidth="0.25" dicField="tdjmxzDm" />
						<aos:combobox id="isYz" name="isYz" fieldLabel="是否有证" value="true"
							columnWidth="0.25" dicField="isYzDm" />		
                    <%--<aos:combobox id="sjlyDm" name="sjlyDm" fieldLabel="数据来源" value="true" columnWidth="0.25"--%>
						<%--dicField="sjlyDm" />--%>
						<aos:combobox id="tddjDm" name="tddjDm" fieldLabel="土地等级"
							value="true" columnWidth="0.25" dicField="tddjDm" />

						<aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关"
							columnWidth="0.25"
							url="fgcjxxbdfxService.queryZgswjgDmByHttpModel"
							onselect="queryZgswskfjDmByZgswjgDm" />
						<aos:combobox id="zgswskfjDm" name="zgswskfjDm"
							fieldLabel="主管税务科所" columnWidth="0.25"
							url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm"
							onselect="querySsglyDmByZgswskfjDm" />
						<aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员"
							columnWidth="0.25"
							url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm" />
					</aos:formpanel>
				</aos:panel>
			</aos:docked>
			<aos:gridpanel id="tdxxcxfxGrid" layout="fit" forceFit="true"
				columnWidth="3" autoScroll="true" hidePagebar="true"
				url="tdxxcxfxService.queryTdxxcxfxByParams" height="500"
				columnLines="true">
				<aos:column dataIndex="nsrsbh" header="纳税人识别号" width="0.1"
					align="center" />
				<aos:column dataIndex="nsrmc" header="纳税人名称" width="0.1"
					align="center" />
				<aos:column dataIndex="lxrxm" header="联系人姓名" width="0.1"
					align="center" />
				<aos:column dataIndex="lxrsfzjlxDm" header="证件类型" width="0.1"
					align="center" rendererField="sfzjlxDm" />
				<aos:column dataIndex="lxrsfzjhm" header="证件号码" width="0.1"
					align="center" />
				<aos:column dataIndex="lxryddh" header="联系电话" width="0.1"
					align="center" />
				<aos:column dataIndex="lxrdz" header="联系地址" width="0.3"
					align="center" />
				<aos:column dataIndex="tdbh" header="土地编号" width="0.1"
					align="center" />
				<aos:column dataIndex="tdzdh" header="土地宗地号" width="0.1"
					align="center" />
				<aos:column dataIndex="tdbjszD" header="土地四至-东" width="0.1"
					align="center" />
				<aos:column dataIndex="tdbjszX" header="土地四至-西" width="0.1"
					align="center" />
				<aos:column dataIndex="tdbjszN" header="土地四至-南" width="0.1"
					align="center" />
				<aos:column dataIndex="tdbjszB" header="土地四至-北" width="0.1"
					align="center" />
				<aos:column dataIndex="zldz" header="坐落地址" width="0.3"
					align="center" />
				<aos:column dataIndex="tdsyrlxDm" header="使用人类型"
					rendererField="tdsyrlxDm" width="0.1" />
				<aos:column dataIndex="tdsyqlxDm" header="使用权类型"
					rendererField="tdsyqlxDm" width="0.1" />
				<aos:column dataIndex="tdsyqZsbh" header="权证书编号" width="0.1"
					align="center" />
				<aos:column dataIndex="tdxzDm" header="土地性质" rendererField="tdxzDm"
					width="0.1" align="center" />
				<aos:column dataIndex="tdytDm" header="土地用途" rendererField="tdytDm"
					width="0.1" align="center" />
				<aos:column dataIndex="tdsyqQdrq" header="取得日期" width="0.1"
					type="date" format="Y-m-d" align="center" />
				<aos:column dataIndex="tdsyqQsrq" header="起始日期" width="0.1"
					type="date" format="Y-m-d" align="center" />
				<aos:column dataIndex="tdsyqZzrq" header="终止日期" width="0.1"
					type="date" format="Y-m-d" align="center" />
				<aos:column dataIndex="tddjDm" header="土地等级" width="0.1"
					align="center" rendererField="tddjDm" />
				<aos:column dataIndex="tdmj" header="土地面积" width="0.1" align="rigth"
					type="number" format="0.00" defaultValue="0" />
				<aos:column dataIndex="tdyz" header="土地原值" width="0.1" align="rigth"
					type="number" format="0.00" defaultValue="0" />
				<aos:column dataIndex="tdjmxzDm" header="减免性质"
					rendererField="tdjmxzDm" width="0.1" align="center" />
				<aos:column dataIndex="jmmj" header="免税面积" width="0.1" align="right"
					type="number" format="0.00" defaultValue="0" />
				<aos:column dataIndex="ysmj" header="应税面积" width="0.1" align="right"
					type="number" format="0.00" defaultValue="0" />
				<aos:column dataIndex="jmse" header="减免税额" width="0.1" align="right"
					type="number" format="0.00" defaultValue="0" />
				<aos:column dataIndex="jmYxqq" header="减免有效期起" width="0.1"
					type="date" format="Y-m-d" align="center" />
				<aos:column dataIndex="jmYxqz" header="减免有效期止" width="0.1"
					type="date" format="Y-m-d" align="center" />
				<aos:column dataIndex="ysje" header="应纳税额" width="0.1" align="right"
					type="number" format="0.00" defaultValue="0" />
			</aos:gridpanel>
		</aos:formpanel>
	</aos:viewport>
	<script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryTdxxcxfxByParams() {
            tdxxcxfxGrid_store.getProxy().extraParams = Ext.getCmp

("tdxxcxfxForm").getValues();
            tdxxcxfxGrid_store.reload();
        }
        function resetCxtjForm() {
            AOS.reset(tdxxcxfxForm);
        }
        
    </script>
</aos:onready>